Role of SemiColon in various Programming Languages
Semicolon is a punctuation mark (;) indicating a pause, typically between two main clauses, that is more pronounced than that indicated by a comma. In programming, Semicolon symbol plays a vital role. It is used to show the termination of instruction in various programming languages as well, like C, C++, Java, JavaScript and Python....
read more
Hello World Program : First program while learning Programming
In this article, I’ll show you how to create your first Hello World computer program in various languages. Along with the program, comments are provided to help you better understand the terms and keywords used in theLearning program. Programming can be simplified as follows:...
read more
How to Build a Simple Web Server with Golang?
Golang is a procedural programming language ideal to build simple, reliable, and efficient software....
read more
Python vs Other Programming Languages
Python is a general-purpose, high level programming language developed by Guido van Rossum in 1991. It was structured with an accentuation on code comprehensibility, and its syntax allows programmers to express their concepts in fewer lines of code which makes it the fastest-growing programming language in current times....
read more
Difference Between Golang and PHP
Golang is a statically typed, compiled programming language invented at Google headquarter by Mr. Robert Griesemer, Mr Rob Pike, and Mr. Ken Thompson. Its development began in 2007 and it was made available to the public in the year 2009. It’s open-source and freely available for public use. It is mostly congruent to C and C++ programming language if we look at its code syntax. That’s why, Golang has many features of other modern programming languages, like method and operator overloading, pointers, and inheritance. It also provides the concurrency mechanisms that make it easy to develop multicore and networked machine level oriented programs. It’s an interpreted and fast executing language with a rich robust library....
read more
Comparison between Go & Node.js
Go: Go or Golang is a statically typed, open-source procedural-oriented programming language. It was designed at Google by Robert Griesemer, Rob Pike, and Ken Thompson, and it was released on the 10th of November 2009. The language was designed using C programming language so the syntax of the language is quite similar to C language. However, Golang has some additional features like memory safety, garbage collection, concurrency, etc. There are many big organizations that use the Go language like Uber, DailyMotion, Soundcloud, Medium, Docker, Intel, Baidu, Twitch, Google itself, and many more. For creating static websites, server development, web scraping, and designing backend Golang is mostly preferred. But due to the being slower and verbose it is still not so popular....
read more
How to Dockerize a Golang Application?
Docker is a containerization platform that lets you build, run, and manage applications in an isolated environment. In a container, software, libraries, and configuration files are bundled together and isolated from one another. Golang is an open-source, procedural, and statically typed programming language. In this article, we’ll discuss how to develop and deploy a Golang application using Docker....
read more
How to Remove Duplicate Values from Slice in Golang?
An array is a data structure. Similarly, in Golang we have slice which is more flexible, powerful, lightweight and convenient than array. As slice is more flexible than array therefore, its flexibility is determined in terms of its size. Just like an array, it has indexing value and length but its size is not fixed. When we declare a slice we do not specify the size of it. Syntax:...
read more
Difference Between Go and Python Programming Language
Golang is a procedural programming language. It was developed in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson at Google but launched in 2009 as an open-source programming language. Programs are assembled by using packages, for efficient management of dependencies. This language also supports environment adopting patterns alike to dynamic languages. Python is a widely-used general-purpose, high-level programming language. It was initially designed by Guido van Rossum in 1991 and developed by Python Software Foundation. It was mainly developed for emphasis on code readability, and its syntax allows programmers to express concepts in fewer lines of code. Python is a programming language that lets you work quickly and integrate systems more efficiently....
read more
complx.Phase() Function in Golang with Examples
In Go language, cmplx packages supply basic constants as well as mathematical functions for the complex numbers. The Phase() function in Go language is used to return the phase (also called the argument) of a given number. Moreover, this function is defined under the cmplx package. Here, you need to import “math/cmplx” package in order to use these functions....
read more
How to Get Current Date and Time in Various Format in Golang?
Package “time” in Golang provides functionality for measuring and displaying time. The calendrical calculations always assume a Gregorian calendar, with no leap seconds. Using the “time.Now()” function you can get the date and time in the “yyyy-mm-dd hh:mm:ss.milliseconds timezone” format. This is simplest way for getting the date and time in golang....
read more
How to Generate Random String/Characters in Golang?
We might want to generate random strings or even sets of characters to perform some operations or add certain string-related functionality into an application. We can randomly get a character from a set of characters, randomize the order of characters of a given string or generate a random string. We can use the rand, encoding package in Golang. In this article, we will see how to generate random strings in Golang....
read more